#include <stdio.h>
#include "../components/my_driver/nvs_driver.h"
#include "../components/my_driver/pwm_driver.h"
#include "../components/send_handle/light_send_handle.h"
#include "../components/uart_handle_module/uart_logic_handle.h"
#include "../components/cache_RT/cache_handle.h"
#include "../components/logic_handle/light_effect_handle.h"
#include "../components/logic_handle/task_app_logic.h"
#include "../components/cache_RT/report_handle.h"

char buf_device[17]="3002000000000001";

void app_main(void)
{
    driver_nvs_init();
    light_send_handle_fun_init();//spi发送任务初始化
    device_pwm_init(); //PWM通道初始化
    cache_init();//初始化解析函数
    init_uart_handle();//串口初始化初始化
    task_sensor_dectect_init(); //开启按键扫描
    task_light_effect_dazzling_init(); //灯效运算任务开启
    task_app_logic_init(); //初始化逻辑处理部分
    task_iot_report_init(); //初始化上报部分
}
